
<?php
if (isset($model->fases)){
	foreach ($model->fases as $fase){
		if ($fase->id==$model->id_fase){?>
			<div class="fase selected" onclick="location.href='<?php echo $this->createUrl("fixture/faseFixture",array('id_fase'=>$fase->id,'id_campeonato'=>$fase->id_campeonato));?>';">
		<?php }else{?>
			<div class="fase" onclick="location.href='<?php echo $this->createUrl("fixture/faseFixture",array('id_fase'=>$fase->id,'id_campeonato'=>$fase->id_campeonato));?>';">
		<?php }?>			
			<span><?php echo $fase->nombre?></span></div>
<?php }}?>
